package com.yuandian.management.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuandian.api.management.entity.ConfResourceWhitelist;
import com.yuandian.management.mapper.ConfResourceWhitelistMapper;
import com.yuandian.management.service.ConfResourceWhitelistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 服务资源白名单配置表-Service实现
 * @author zfsn
 * @date 2023-3-28
 */
@Service
public class ConfResourceWhitelistServiceImpl extends ServiceImpl<ConfResourceWhitelistMapper, ConfResourceWhitelist>
		implements ConfResourceWhitelistService {

	@Autowired
	private ConfResourceWhitelistMapper confResourceWhitelistMapper;
	/**
	 * 分页查询
	 *
	 * @param confResourceWhitelist 筛选条件
	 * @return 通用返回对象
	 */
	@Override
	public Page<ConfResourceWhitelist> listPage(ConfResourceWhitelist confResourceWhitelist) {
		return confResourceWhitelistMapper.listPage(new Page<>(confResourceWhitelist.getPageNum(), confResourceWhitelist.getPageSize()), confResourceWhitelist);
	}
}